
package bibliotheque.events;

import bibliotheque.client.Client;
import java.util.EventObject;

/**
 *
 * @author guillaume
 */
public class ConnexionOccuredEvent extends EventObject{
    
    //private Client client;
    private String ip;
    private String adresseRmi;
    private int portRmi;
    private String service;
    
    public ConnexionOccuredEvent(Object source, String adresseRmi, int portRmi, String serviceName, String ip) {
        super(source);
        this.adresseRmi = adresseRmi;
        this.portRmi = portRmi;
        this.service = serviceName;
        this.ip = ip;
    }
    
    public String GetAdresseRmi(){
        return this.adresseRmi;
    }
    
    public int GetPortRmi() {
        return this.portRmi;
    }
    
    public String GetServiceName() {
        return this.service;
    }
    
    public String GetIp(){
        return this.ip;
    }
    
}
